package com.weng.coder.common.utils;

import com.alibaba.druid.util.JdbcConstants;

/**
 * 常量
 * @author wengzhonghui
 *
 */
public final class Constants {
	//系统编码
	public final static String SYSTEM_CHAR_CODE = "UTF-8";
	//
	public final static String AOP_LOG_DESCRIPTION = "AOP_LOG_DESCRIPTION";

	/**
	 * 获取默认支持的数据库类型
	 */
	public static String getDefaultDbType(){
			return JdbcConstants.MYSQL;
	}

	/**
	 * 获取默认支持的数据库 字段类型
	 */
	public static String getDefaultJdbcType(){
		return "varchar";
	}

	/**
	 * 获取默认支持的java 字段类型
	 */
	public static String getDefaultJavaType(){
		return "String";
	}

	//默认分区
	public final static String DEFAULT_AREA = "system";

	// 是或否的标识
	public static final Integer FLAG_TRUE = 1;
	public static final Integer FLAG_FALSE = 0;

	//是内置项目
	public static Integer IS_BUILD_IN_TRUE = 1;
	//非内置项目
	public static Integer IS_BUILD_IN_FALSE = 0;

	//是否项目拥有者
	public static final Integer IS_OWNER_TRUE = 1;
	public static final Integer IS_OWNER_FALSE = 0;
	
	/**
	 * 命名规则
	 */
	public final static String NAME_GLOBAL_REPLACE = "global_replace";
	public final static String NAME_LEFT_REPLACE = "left_replace";
	public final static String NAME_RIGHT_REPLACE = "right_replace";
	public final static String NAME_LEFT_APPEND = "left_append";
	public final static String NAME_RIGHT_APPEND = "right_append";
	

	/**
	 * 用户状态-启用;
	 */
	public final static Integer USER_STATUS_START = 1;

	/**
	 * 用户状态-停用;
	 */
	public final static Integer USER_STATUS_STOP = 2;

	/**
	 * 数据库类型-oracle
	 */
	//public final static String DB_TYPE_ORACLE = "Oracle";

	/**
	 * 数据库类型-sql server
	 */
	//public final static String DB_TYPE_SQLSERVER = "Microsoft SQL Server";

	/**
	 * 命名类型-文件
	 */
	public final static String NMAE_CATEGORY_FILE = "file";

	/**
	 * 命名类型-字段
	 */
	public final static String NMAE_CATEGORY_FIELD = "field";


	/**
	 * (表)未设置
	 */
	public final static Integer TABLE_NOT_SET = 1;


	/**
	 * 布尔：否
	 */
	public final static Integer BOOLEAN_NO = 2;

	public final static String UTF8 = "UTF-8";
}
